package com.zwb.aiwebsite.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.*;

/**
 * 轮播图表对象
 *
 * @author 2825075112@qq.com
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Entity
@Table(name = "tb_carousel")
public class TbCarousel {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id    //主键id
    @GeneratedValue(strategy = GenerationType.IDENTITY)//主键生成策略
    @Column(name = "id")////数据库字段名
    private Integer id;

    /**
     * 图片地址
     */
//    @Column(name = "imgUrl")
    private String imgUrl;

    /**
     * 顺序
     */
    @Column(name = "t_order")
    private Integer order;


}
